﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using DBLibrary;

[DataObject]
public class SpendItemDB
{
    private DB mDB;
	public SpendItemDB()
	{
        mDB = PoseidonDBHelper.UserDB;
	}

    [DataObjectMethod(DataObjectMethodType.Select, true)]
    public List<SpendItemDetail> GetEmployees()
    {
        return mDB.Select<SpendItemDetail>();
    }

    [DataObjectMethod(DataObjectMethodType.Update, true)]
    public void UpdateEmployees(SpendItemDetail c)
    {
        mDB.Update(c, "SpendItemId");
    }

    [DataObjectMethod(DataObjectMethodType.Delete, true)]
    public void DeleteEmployees(SpendItemDetail c)
    {
        mDB.Delete(c);
    }
}